package com.example.useroauth.feign;

import com.example.entity.ResultData;
import com.example.useroauth.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user")
public interface UserFeign {

    @GetMapping("/user/load/{username}")
    ResultData<User> findUserInfo(@PathVariable("username") String username);
}
